package com.chiaching.framwork.core.handler.security;

import com.chiaching.framwork.domian.bean.SuperMallUserDetail;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 *
 * @author jiajing.he
 * @date 2021/7/27 下午2:23
 */
@FeignClient(name = "super-mall-ums"/*,url = "localhost:9096"*//*,configuration = {DefaultDecoder.class, DefaultEncoder.class, DefaultErrorDecode.class}*/)
public interface SuperMallSecurityUserApi {

    @PostMapping("/ums/security/queryById")
    SuperMallUserDetail queryById(@RequestParam(value = "userId")Long userId);


    @PostMapping("/ums/security/queryByUsername")
    SuperMallUserDetail queryByUsername(@RequestParam(value = "username")String username);
}
